<template>
  <div>
    <el-button @click="router.back()">返回首页</el-button>
  <span>登录页面</span>
  </div>
</template>

<script setup>
import {reactive, ref} from "vue";
import router from "@/router/index.js";

const data = reactive({
  id:router.currentRoute.value.query.id,
  name:router.currentRoute.value.query.name,
})


console.log('@@@@@@'+data.id+"======="+data.name)

</script>

<style scoped>

</style>